package org.niugang.bean;

import java.io.Serializable;
import java.util.List;

import org.niugang.constant.CodeConstant;

/**
 * controller层返回带分页对象
 * @author niugang
 *
 */
public class PageResultBean<T> extends Page implements Serializable,Result{
	
	private static final long serialVersionUID = 1L;
	/**
	 * 返回的信息
	 */
	private String message = "success";
	/**
	 * 返回码
	 */
	private  Integer status=CodeConstant.SUCCESS.getValue();
	/**
	 * 返回的数据
	 */
	private List<T> data;

	public PageResultBean() {
		super();
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
   
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public List<T> getData() {
		return data;
	}


	public void setData(List<T> data) {
		this.data = data;
	}
	
}
